import React from 'react';
import { Router, Route, Switch } from 'dva/router';
import IndexPage from './routes/IndexPage';
import Home from "./components/Home/Home";
import Kill from "./components/Kill/Kill";
import Product from "./components/Product/Product";
function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <Switch>
        <Route path="/product" component={Product} />
        <Route path="/" exact component={IndexPage} />

        <Route path="/home" component={Home} />
        <Route path="/kill" component={Kill} />
      </Switch>
    </Router>
  );
}

export default RouterConfig;
